<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="thx" uri="/thx-tags"%>
<%@ taglib prefix="fun" uri="http://java.sun.com/jsp/jstl/functions"%>

<section class="content-header">
	<h1>
		应用分类<small>应用流程</small>
	</h1>
	<ol class="breadcrumb">
		<li><a href="#"><i class="fa fa-dashboard"></i> 主页</a></li>
		<li><a href="#">应用流程管理</a></li>
		<li class="active">应用分类管理</li>
	</ol>
</section>

<section class="content">
	<div class="row">
		<div class="col-md-12">
			<div class="box">
				<div class="box-header with-border">
					<div class="row"></div>
				</div>
				<div class="box-body no-padding">
					<div class="row">
						<div class="col-sm-12">
							<table class="table table-bordered">
								<tr>
									<th>分类</th>
									<th width="20%">操作</th>
								</tr>
								<c:if test="${empty list}">
									<tr>
										<td colspan="2">暂无数据！</td>
									</tr>
								</c:if>
								<c:forEach items='${list}' var="catalog">
									<tr>
										<td>${catalog.typeName}</td>
										<td><thx:privileged id="workflow_appCatalog_edit">
												<button type="button" title="修改" data-toggle="tooltip"
													data-placement="bottom"
													open-url="workflow/appCatalog!input.action?id=${catalog.typeId}"
													class="btn btn-default btn-sm btn-open-form">
													<i class="fa fa-edit"></i>
												</button>
											</thx:privileged> <thx:privileged id="workflow_appCatalog_del">
												<button type="button" title="删除" data-toggle="tooltip"
													data-placement="bottom"
													do-url="workflow/appCatalog!delete.action?id=${catalog.typeId}"
													load-url="workflow/appCatalog!list.action"
													confirm-msg="确定要删除吗？"
													class="btn btn-default btn-sm btn-open-confirm-win">
													<i class="fa fa-trash"></i>
												</button>
											</thx:privileged></td>
									</tr>
								</c:forEach>
							</table>
						</div>
					</div>
				</div>
				<div class="box-footer">
					<!--分页区-->
					<div class="pagePanel">
						<thx:pages pageNo="page.curPage" total="page.totalPage"
							theme="number">
						</thx:pages>
					</div>
					<!--底部操作区-->
					<div class="handlePanel">
						<thx:privileged id="workflow_appCatalog_edit">
							<a title="新增" class="a-btn btn-open-form"
								open-url="workflow/appCatalog!input.action"> <span
								class="fa fa-plus"></span> <span class="text">新增</span>
							</a>
						</thx:privileged>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>
<script>
	$(function() {
		list.init();
		page.init();
	});
</script>